mui.init()
//	var data = JSON.parse(localStorage.getItem("data"));
//	//console.log(data)
//	var uid = data.uid;
//	var token = data.token;

var vm = new Vue({
	el: '.my',
	data: {
		list: '',
		judgeUnReadMessage:""
	}
});

common.ajax("student/queryReadReport", {
	uid: common.uid,
	token: common.token
}, function(data) {
	if(data.code == 200) {
		vm.list = data.data;
	} else {
		mui.toast(data.message)
	}
}, "get");

common.ajax("student/judgeUnReadMessage",{
	uid:common.uid,
	token:common.token
},function(data){
	if(data.code==200){
		vm.judgeUnReadMessage = data.data
	}else{
		mui.toast(data.message)
	}
},"get")
/*$(".saoma").on("tap", function() {
	common.open("news.html","","");
})
$(".myBasic").on("tap", function() {
	common.open("myMessage.html","","");
})*/
common.clsopen()
$(".myBasic").on("tap", function() {
	common.open("myMessage.html", "myMessage.html")
})
window.addEventListener('refresh', function(e) { //执行刷新
	location.reload();
});